package com.util;

import java.util.Random;

/**
 * @Author: 柏竹
 * @Description: 随机工具类
 * @Date_Created_in: 2021-05-22 17:52
 * @Modified_By: Sans
 * @Project: 快递e栈
 */
public class RandomUtil {
    
    private static Random r = new Random();
    
    /**
     * 生成随机数
     * @return 获取随机取件码
     */
    public static int getCode(){
        return r.nextInt(900000)+100000-1;
    }
    
}
